<div class="container">
	<div class="row-fluid">
		<div class="span8">
			<?php include(__DIR__.'/_message.phtml'); ?>
			<h1><?php $root = $post; echo $post['post_title']; ?></h1>
			<?php include(__DIR__.'/_post.phtml'); ?>
			<?php if($post['answers']->count() > 0): ?>
			<h1><?php echo count($post['answers']); ?> Answers</h1>
			<?php foreach($post['answers'] as $post): ?>
			<?php include(__DIR__.'/_post.phtml'); ?>
			<?php endforeach; ?>
			<?php endif; ?>
			<h1>Your Answer</h1>
			<div class="post row-fluid">
				<div class="vote span1"></div>
				<div class="content span11">
					<form method="post">
					<?php echo jquery()->field()
						->wysiwyg('detail')
						->setOptions('width', '500px')
						->setOptions('toolbar', array(
							array('Maximize',
							'-', 'Bold', 'Italic', 'Underline', 'Strike',
							'-', 'NumberedList', 'BulletedList', 
							'-', 'Code', 'Blockquote', 
							'-', 'Image', 'Table')))
						->setOptions('extraPlugins', 'syntaxhighlight')
						->setOptions('contentsCss', '/assets/styles/bootstrap.css'); ?>
					<br />
					<button type="submit" value="answer" name="type" 
					class="btn btn-primary btn-large">Answer</button>
					<input type="hidden" name="post" value="<?php echo $root['post_id']; ?>" />
					</form>
				</div>
			</div>
		</div>
		<?php include(__DIR__.'/_right.phtml'); ?>
	</div>
</div>
<script type="text/javascript" src="/assets/brushes/shCore.js"></script>
<script type="text/javascript" src="/assets/brushes/shBrushPhp.js"></script>
<script type="text/javascript" src="/assets/brushes/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="/assets/brushes/shCoreDefault.css"/>
<script type="text/javascript">SyntaxHighlighter.all();</script>